function mytable(url,data,keys){
        var mytable = $("#mytable");
        mytable.html("正在加载表格。。。");
        var keyname = [];//表头
        var key     = [];//表头对应数据
        var keyfun  = [];//方法
        var tdtext  = "";

        for(var tmp in keys){
            keyname.push(keys[tmp]['fileName']);
            key.push(keys[tmp]['fileCont']);
            keyfun.push(keys[tmp]['fileFun']);
        }

        tdtext += "<thead>";
        tdtext += "<tr><th><input type='checkbox' id='keyall'> 序号</th>";
        for(var te in keyname){
            tdtext += "<th>"+keyname[te]+"</th>";
        }
        tdtext += "</tr>";
        tdtext += "</thead>";

        $.ajax({
            type    : "GET",//可以改post
            data    : data,
            url     : url,
            success : function(e){
                tdtext += "<tbody>";
                for(var i in e){

                    var ip = Number(i)+1;
                    tdtext += "<tr>";
                    tdtext += "<td><input type='checkbox' value=''> "+ip+"</td>";
                    for(var j in key){
                        if(keyfun[j] != undefined){
                            tdtext +="<td>"+keyfun[j]+e[i][key[j]]+"</td>"; 
                        }else{
                            tdtext +="<td>"+e[i][key[j]]+"</td>";                            
                        }
                    }
                    tdtext +="</tr>";
                }
                tdtext += "</tbody>";
                mytable.html(tdtext);
            }
        });
    }